package entity

const (
	_ = iota
	SmsCodeRegister
	SmsCodeLogin
	SmsCodeResetPassword
)

type Sms struct {
	Phone string `gorm:"type:varchar(11);primary_key"`
	Type int `gorm:"type:int(10);primary_key"`
	Code string `gorm:"size=12"`
	RefreshedAt int64
	Countdown int
}

func (sms *Sms) TableName() string {
	return "sms_code"
}